package com.lmb.mapper;

import com.lmb.bean.Families;
import com.lmb.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface FamiliesDao {
    int add(@Param("family") Families family);

    int del(@Param("id")Integer id);

    int edit(@Param("family") Families family);

    Families one(@Param("id")Integer id);

    List<Families> all(@Param("family") Families family);

    int pageCount(@Param("family") Families family);

    List<Families> page(@Param("page") Page page, @Param("family") Families family);
}
